package com.content.management.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.content.management.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 发布内容
 * </p>
 *
 * @author xinghu
 * @since 2020-04-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_publish_content")
@ApiModel(value = "BusPublishContent对象", description = "发布内容")
public class BusPublishContent extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "发布时间")
	@TableField("publish_time")
	private LocalDateTime publishTime;

	@ApiModelProperty(value = "发布状态：0：已发布；1：未发布")
	@TableField("publish_status")
	private Integer publishStatus;

	@ApiModelProperty(value = "内容状态：0：内容正常；1：内容撤回")
	@TableField("content_status")
	private Integer contentStatus;

	@ApiModelProperty(value = "内容主题")
	@TableField("content_topic")
	private String contentTopic;

	@ApiModelProperty(value = "作者")
	@TableField("content_author")
	private String contentAuthor;

	@ApiModelProperty(value = "发布的具体类容")
	@TableField("content")
	private String content;

	@ApiModelProperty(value = "面向的发布人群")
	@TableField("publish_crowd")
	private String publishCrowd;

	/**
	 * @see com.content.management.util.PublishType
	 */
	@ApiModelProperty(value = "发布类型")
	@TableField("publish_type")
	private String publishType;

	@ApiModelProperty(value = "所属分类")
	@TableField("classification")
	private String classification;

}
